import com.troyworks.framework.ui.BaseComponent;

/**
 * @author Troy Gardner
 */
class com.troyworks.mediaplayer.ui.SeekBarNav extends BaseComponent {
	
	public var seekbutton_mc:MovieClip;
	public var loaded_mc:MovieClip;
	public var played_mc:MovieClip;
	function SeekBarNav() {
		super();
		
	}
	public function onLoad() : Void{
		super.onLoad();
		trace("SeekBarNav.onLoad");
	//	_visible = true;
		//Q_dispatch(ASSETS_LOADED_EVT);
	
	}	
	public function setPlayedProgress(percent : Number) : Void {
		trace("SeekBarNav.setPlayedProgress " + percent);
		seekbutton_mc._x= _owidth * percent;
		played_mc._width = _owidth * percent;
	}

	public function setLoadedProgress(percent : Number) : Void {
		loaded_mc._width = _owidth * percent;
	}

}